package com.example.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * Description
 * Author wangxh
 * Date 2020/7/15-3:05 下午
 * Version V1.0
 **/
@Component
public class SCTaskA extends SchedulingConfigurerAbs{

    private static final Logger logger = LoggerFactory.getLogger(SCTaskA.class);

    @Override
    void cronTask() {
        logger.info("====== SCTaskA ======");
    }

    @Override
    public String getCron() {
        return "0/3 * * * * ?";
    }
}
